//
//  YJAboutUsViewController.m
//  Sports-Go
//
//  Created by rimi on 16/9/21.
//  Copyright © 2016年 YRL. All rights reserved.
//

#import "YJAboutUsViewController.h"

@interface YJAboutUsViewController ()

@end

@implementation YJAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    //去掉导航栏返回字
    [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60) forBarMetrics:UIBarMetricsDefault];
    self.title = @"关于我们";
    
    [self.navigationController.navigationBar setTitleTextAttributes:
  @{NSFontAttributeName:[UIFont systemFontOfSize:17],NSForegroundColorAttributeName:[UIColor whiteColor]}];
    self.navigationController.navigationBar.barTintColor = getColor(58, 206, 248, 1);
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:RzCGRectMake(150, 150, 75, 75)];
    imageView.layer.cornerRadius = 5;
    imageView.layer.masksToBounds = YES;
    imageView.image = [UIImage imageNamed:@"logo1"];
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:RzCGRectMake(127, 250, 120, 30)];
    titleLabel.text = @"Sports-Go";
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [titleLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:20]];
    titleLabel.font = [UIFont italicSystemFontOfSize:20];//设置字体为斜体
    
    UILabel *letLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 500*bi, screen_size.width, 50)];
    letLabel.text = @"Let's Start";
    letLabel.textAlignment = NSTextAlignmentCenter;
    letLabel.font = [UIFont italicSystemFontOfSize:24];
    
    UILabel *version = [[UILabel alloc] initWithFrame:RzCGRectMake(0, 560, 375, 30)];
    version.text = @"当前版本 1.0";
    version.textColor = [UIColor lightGrayColor];
    version.font = [UIFont systemFontOfSize:14];
    version.textAlignment = NSTextAlignmentCenter;
    
    [self.view addSubview:imageView];
    [self.view addSubview:titleLabel];
    [self.view addSubview:letLabel];
    [self.view addSubview:version];
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO];
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated{
    
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:YES];
    self.tabBarController.tabBar.hidden = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}


@end
